package com.mjawor.lpgroovy.vars

class BooleanVar extends VarImpl<Boolean> {

	BooleanVar(String id) {
		super(id)
		lb(0).ub(1)
	}

	BooleanVar(String id, Boolean b) {
		super(id,b)
		lb(0).ub(1)
	}

    @Override
	Class getType() {
		return Boolean
	}

    @Override
    Object clone() {
        def result = new BooleanVar(id, value)
        result.ub(ub()).lb(lb())
        result.value = value
        return result
    }
}
